<?php
/*
 * 增加心动值消费，暂时不执行
 */

namespace App\Jobs\QiPao;

use App\Jobs\Job;
use App\Exceptions\BasicException;
use Illuminate\Support\Facades\Log;

class CardiaJob
{

    protected $data;
    
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($data)
    {
        $this->data = $data;
    }
    
    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        try {
            //增加心动值消费，暂时不执行
            $rs =app('model_room_cardiac')->updateRoomCardiac($this->data);
        } catch (BasicException $exception) {
            echo $exception->getMessage();
        } catch (\Exception $exception) {
            Log::error(__CLASS__.':'.$exception->getMessage());
        }
    }

}